<script language='javascript' src='../../plug-in/splidword/prototype.js'></script>
<script language="javascript" src="../../plug-in/splidword/splidword.js"></script>
<script language="javascript" src="../../plug-in/PopCalender/popcalendar.js"></script> 
<script Language="JavaScript">dateformat='yyyy-mm-dd'</script>
<div class="ccc2">
	<ul>
		<li>
			<span class="right"><input type="button" onClick="javascript:history.back();" value="返回资料列表" class="gray mini"></span>
			当前位置：<?{$arrGWeb.module_name}?>管理
	 </li>
	</ul>
</div>
<form name="form1" id="form1" onSubmit="return checkform()" action="?page=<?{$smarty.get.page}?>" method="post" enctype="multipart/form-data">
<div id="biweb">
<table class="biweb" align="center" cellspacing="0">
	<tr class="firstr">
		<td colspan="3">编辑<?{$arrGWeb.module_name}?>：</td> 
	</tr>	
	<tr>
    <td style="width:160px!important;width:100px;">所属分类：</td>
    <td style="width:550px;"><select size="1" name="type_id">
		<?{foreach from=$arrMType key=key item=type}?>
		<?{if is_array($type) && array_key_exists('type_title',$type) }?>
		<option value="<?{$type.type_id}?>|<?{$type.type_roue_id}?>" <?{if !empty($type.type_link)}?>disabled='disabled'<?{/if}?> <?{if $type.type_id == $arrData.type_id}?>selected=selected<?{/if}?>><?{$type.type_title}?></option>
		<?{else}?>
		<option value="<?{$key}?>" <?{if $key == $arrData.type_id}?>selected=selected<?{/if}?>><?{$type}?></option>    	
		<?{/if}?>
		<?{/foreach}?>
    </select></td>
    <td style="width:250px!important;width:310px;"><font color="red">*</font><span class=gray>所属分类</span></td>
	</tr>
  <tr>
  	<td>案例标题：</td>
    <td><select size=1 name=bedeck>
	<option value="0">无修饰</option>
	<option value="1" <?{if $arrData.bedeck == 1}?>selected<?{/if}?>>1[加粗]</option>
	<option value="2" <?{if $arrData.bedeck == 2}?>selected<?{/if}?>>2[标红]</option>
	<option value="3" <?{if $arrData.bedeck == 3}?>selected<?{/if}?>>3[标绿]</option>
	<option value="4" <?{if $arrData.bedeck == 4}?>selected<?{/if}?>>4[标蓝]</option>
	<option value="5" <?{if $arrData.bedeck == 5}?>selected<?{/if}?>>5[标橙]</option>
	<option value="6" <?{if $arrData.bedeck == 6}?>selected<?{/if}?>>6[红粗]</option>
	<option value="7" <?{if $arrData.bedeck == 7}?>selected<?{/if}?>>7[绿粗]</option>
	<option value="8" <?{if $arrData.bedeck == 8}?>selected<?{/if}?>>8[蓝粗]</option>
	<option value="9" <?{if $arrData.bedeck == 9}?>selected<?{/if}?>>9[橙粗]</option>
	</select>
	<input maxLength=210 size=45 id=title name=title value="<?{$arrData.title}?>" onBlur="dodivde();"></td>
    <td><font color="red">*</font><span class=gray>标题，最大70个中文</span></td></tr>
  <tr>
    <td>页面标题：</td>
    <td><input maxLength=210 size=45 name=meta_Title value="<?{$arrData.meta_Title}?>"></td>
    <td><span class=gray>用于搜索引擎优化，不填系统会自动生成</span></td></tr>
   <tr>
    <td>页面摘要：</td>
    <td><textarea name=meta_Description rows=3 cols=50><?{$arrData.meta_Description}?></textarea></td>
    <td><span class=gray>用于搜索引擎优化，不填系统会自动生成</span></td></tr>
  <tr>
    <td>页面关键字：</td>
    <td><textarea name=meta_Keywords rows=3 cols=50><?{$arrData.meta_Keywords}?></textarea></td>
    <td><span class=gray>用于搜索引擎优化，不填系统会自动生成</span></td>
  </tr> 
  <tr>
    <td>文章标签：</td>
    <td><input maxLength=50 size=45 id=tag name=tag value="<?{$arrData.tag}?>"></td>
    <td><span class=gray>文章关键字，可为多个，用空格间隔，用于相关文章关联</span></td>
  </tr> 
  <tr>
    <td>转向链接：</td>
    <td><input id=linkurl type="text" <?{if $arrData.linkurl==''}?>disabled<?{/if}?> maxLength=100 size=45 value='<?{$arrData.linkurl|default:"http://"}?>' name=linkurl><label><input id=uselink onclick=UseLinkUrl(); type=checkbox <?{if $arrData.linkurl!=''}?>checked<?{/if}?> 
      value=Yes name=uselink></label></td>
    <td><span class=gray>文章内容直接连接到其他网站</span></td>
  </tr>
 
  <tr>
    <td>文章作者：</td>
    <td><input maxLength=50 size=30 name=author value="<?{$arrData.author}?>">【<font style="CURSOR: hand" 
      onclick="document.form1.author.value='未知'" color=green>未知</font>】【<font 
      style="CURSOR: hand" onclick="document.form1.author.value='<?{$smarty.session.user_name}?>'" 
      color=green><?{$smarty.session.user_name}?></font>】【<font style="CURSOR: hand" 
      onclick="document.form1.author.value='<?{$smarty.session.real_name}?>'" 
    color=green><?{$smarty.session.real_name}?></font>】</td>
    <td><span class=gray>文章的作者</span></td>
  </tr>
  <tr>
    <td>文章摘要：</td>
    <td><textarea name=summary rows=6 cols=50><?{$arrData.summary}?></textarea></td>
    <td><span class=gray>不填系统自动生成摘要，最大<?{$arrGWeb.db_summary_len}?>个中文</span></td>
  </tr>    
  <tr id=ArticleContent <?{if $arrData.linkurl!=''}?>style='display:none'<?{/if}?>>
    <td width="160">资料内容：</td>
    <td colspan="2"><?{if $smarty.session.browser.0 == 'ie'}?>
	<input type=hidden name=intro value="<?{$arrData.intro|htmlspecialchars|stripslashes}?>"> <iframe id=eWebEditor1 
      src="../../plug-in/eWebEditor/ewebeditor.htm?id=intro&style=light" frameBorder=0 width=600 scrolling=no 
      height=350></iframe>
	<?{else}?>
	<input id=content style="DISPLAY: none" type=hidden name="intro" value="<?{$arrData.intro|htmlspecialchars|stripslashes}?>"> 
	<input id=content___Config style="DISPLAY: none" type=hidden> 
	<iframe id=content___Frame src="../../plug-in/fckeditor/editor/fckeditor.html?InstanceName=intro&Toolbar=ArthurXF" frameBorder=0 width=600 scrolling=no height=350> 
	</iframe>
	<?{/if}?>&nbsp;&nbsp;<font color="red">*</font><font color="#808080">必填项</font></td>   
  </tr>
  <tr>
    <td>远程文件：</td>
    <td><input size=45 id=downurl name=downurl value="<?{$arrData.downurl}?>"></td>
    <td><span class=gray>远程文件下载链接</span></td>
  </tr> 
  <tr>
    <td>上传文件：</td>
    <td><input id="Filedata1" size=45 type=file value="上 传" name="Filedata1">
    <?{ if $arrData.file !='' }?>
			<br />
    		<a name='tt' href="<?{$FileCallPath}?><?{$arrData.file}?>">文件下载</a>
    		<input type="hidden" name="savefile"  value="<?{$arrData.file}?>"/>
    <?{/if}?></td>
    <td><span class=gray>注意：上传文件支持格式：'.rar','.zip','.ppt','.xls','.doc','.pdf','.docx',其他格式请先进行打包</span></td>
  </tr>
  <tr>
    <td>上传图片：</td>
    <td><input id="Filedata" size=45 type=file value="上 传" name="Filedata">
	<div id="tip0" class=red><span class=gray>用于列表和详细页面的图片显示</span></div>
    <div id="preview0"><?{if $arrData.photo != ""}?><img src="<?{$FileCallPath}?>b/<?{$arrData.photo}?>" boder="1" onload="resizepic(this,600)"><?{/if}?></div>	</td>
    <td><span class=gray>用于搜索引擎优化，不填系统会自动生成</span></td>
  </tr> 
  <tr>
    <td>图片说明：</td>
    <td><input maxLength=50 size=45 name=photo_narrate value="<?{$arrData.photo_narrate}?>"></td>
    <td><span class=gray>图片的文字说明</span></td>
  </tr> 
  <tr>
    <td>生成缩略：</td>
    <td><input maxLength=50 size=45 name=FileListPicSize value='<?{$arrData.FileListPicSize|default:0}?>'></td>
    <td><span class=gray>设定缩略图宽像素,等比缩放,0为不生成缩略图</span></td>
  </tr> 
  <tr>
    <td>发布时间：</td>
    <td><input type="text" name="submit_date" value="<?{$arrData.submit_date}?>">
		<input TYPE="button" value="" onclick='popUpCalendar(this, form1.submit_date, dateformat,-1,-1,true)' style="background-image:url(../../plug-in/PopCalender/img/Button.gif);width:25px;height:17px;border:0px;padding:0px;"></td>
    <td><span class=gray>修改文章发布时间</span></td>
  </tr> 
  <tr>
    <td>文章属性：</td>
    <td><label><input id=topflag type=checkbox value=1 name=topflag <?{if $arrData.topflag == 1}?>checked<?{/if}?>>固顶(列表) </label>
    	<label><input id=recommendflag type=checkbox value=1 name=recommendflag <?{if $arrData.recommendflag == 1}?>checked<?{/if}?>>推荐(首页) </label>
		<label><input id=hotflag onClick="javascript:document.form1.clicktimes.value=Math.round(Math.random()*1000)" 
      type=checkbox >随机点击 </label>
      会员访问等级：<select size=1 name=stars>
      <option value=5 <?{if $arrData.stars == 5}?>selected<?{/if}?>>★★★★★</option>
      <option value=4 <?{if $arrData.stars == 4}?>selected<?{/if}?>>★★★★</option>
      <option value=3 <?{if $arrData.stars == 3}?>selected<?{/if}?>>★★★</option>
      <option value=2 <?{if $arrData.stars == 2}?>selected<?{/if}?>>★★</option>
      <option value=1 <?{if $arrData.stars == 1}?>selected<?{/if}?>>★</option>
      <option value=0 <?{if $arrData.stars == 0}?>selected<?{/if}?>>无</option></select></td>
    <td><span class=gray>选择文章的一些属性</span></td>
  </tr>   
  <tr>
    <td>点击初始值：</td>
    <td><input maxLength=50 size=10 value="<?{$arrData.clicktimes}?>" name=clicktimes></td>
    <td><span class=gray>这功能是提供给管理员作弊用的</span></td>
  </tr>  
	<tr>
      <td>&nbsp;</td>
      <td align=middle colspan=3><input type=submit id="okgo" name="okgo" value=确　定> <input type=reset value="重 置"></td>
    </tr>
	<input type=hidden name=savephoto value="<?{$arrData.photo}?>">
  <input type=hidden name=id value="<?{$arrData.id}?>">
	<input type=hidden name=user_id value="<?{$arrData.user_id}?>">
</table>
</div>
</form>